package struts;

public class Login extends BaseAction {

	public boolean success;
	public String errors;
	
	public String username;
	public String userid;

	public String execute() {
		return exe();
	}

	public String exe() {
		 getSession().setAttribute("username", getUsername());
		 
		setSuccess(true);
		return "success";

	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getErrors() {
		return errors;
	}

	public void setErrors(String errors) {
		this.errors = errors;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

}
